local hx__kailang = fk.CreateSkill {
  name = "hx__kailang",
  tags = { Skill.Compulsory }
}

hx__kailang:addEffect(fk.DamageCaused, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(hx__kailang.name) and
      data.to:isKongcheng() and data.card and data.card.trueName == "slash" and data.by_user
  end,
  on_use = function(self, event, target, player, data)
    data:changeDamage(1)
  end,
})

hx__kailang:addEffect("atkrange", {
  correct_func = function (self, from, to)
    if from:hasSkill(hx__kailang.name) then
      return 1
    end
    return 0
  end,
})


return hx__kailang
